<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>HTML</title>
    <script src="../../js/jquery.1.8.3.min.js"></script>
    <script>
        $(function () {
            $("#btn1").click(function () {
               var uls = $("ul");
               console.log(uls.html());
            });

            $("#btn2").click(function () {
                var ols = $("ol");
                ols.html("<li>mybatis</li>");
            });
        })
    </script>
</head>
<body>
    <ul>
        <li>java</li>
        <li>Oracle</li>
        <li>Spring</li>
    </ul>
    <ol>

    </ol>
    <button id="btn1">获取HTML</button>
    <button id="btn2">设置HTML</button>

</body>
</html>